//
//  NetworkRequest.h
//  XingXingLao
//
//  Created by 劳景醒 on 16/2/22.
//  Copyright © 2016年 laojingxing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface NetworkRequest : NSObject<NSXMLParserDelegate>

@property (nonatomic, strong) NSMutableArray *XMLDataArr;  // xml数据返回的数据，放到这个数组里面
@property (nonatomic, strong) NSMutableString *mutableString;

+ (void)getRequestWithUrl:(NSString *)urlString
                   params:(NSDictionary *)params
               completion:(void(^)(id result))completionBlock
                  failure:(void(^)(void))failureBlock;

+ (void)postRequestWithUrl:(NSString *)urlString params:(NSDictionary *)params completion:(void(^)(id result))completionBlock failure:(void(^)(void))failureBlock;

+ (void)postXMLRequestWithUrl:(NSString *)urlString params:(NSDictionary *)params completion:(void (^)(id result))completionBlock failure:(void (^)(void))failureBlock;


+ (void)postRequestWithUrlNoMessage:(NSString *)urlString params:(NSDictionary *)params completion:(void (^)(id))completionBlock failure:(void (^)(void))failureBlock;

@end
